package br.edu.fapi.gestao.pg.mapeador;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import br.edu.fapi.gestao.pg.dominio.Telessala;

public class MapeadorTelessala implements RowMapper<Telessala>{

	public Telessala mapRow(ResultSet rs, int rowNum)
			throws SQLException {
		Telessala telessala = new Telessala();
		telessala.setId(rs.getInt("id"));
		telessala.setConvenio(rs.getInt("convenio"));
		telessala.setLocal(rs.getString("local"));
		return telessala;
	}

}
